﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Http;
using System.Web.Routing;

namespace BLOB
{
    public static class WebApiConfig
    {
        public static void Register(HttpConfiguration config)
        {
            config.Routes.MapHttpRoute(
             name: "Api_Get",
             routeTemplate: "{controller}/{action}/{id}",
             defaults: new { id = RouteParameter.Optional }
          );

            //config.Routes.MapHttpRoute(
            //   name: "Api_Post",
            //   routeTemplate: "{controller}/{id}/{action}",
            //   defaults: new { id = RouteParameter.Optional, action = "Post" },
            //   constraints: new { httpMethod = new HttpMethodConstraint("POST") }
            //);
        }
    }
}
